<extend name="Public/base" />
<block name="wrapper">
		<form action="{:U('book/insert')}" enctype="multipart/form-data" method="post">
		<table class="table">
			<tr>
				<th>所属分类</th>
				<td>
					<select name="tid" id="">
						<option value="">--请选择--</option>
						<foreach name="data" item="vo">
							<option value="{$vo['id']}">{$vo['level']|str_repeat="--",###}{$vo['typename']}</option>
						</foreach>
					</select>
				</td>
			</tr>
			<tr>
				<th>书籍名</th>
				<td>
					<input type="text" name="bkname"></td>
			</tr>
			<tr>
				<th>图像</th>
				<td>
					<input type="file" name="bkpic[]" multiple></td>
			</tr>
			<tr>
				<th>价格</th>
				<td>
					<input type="number" name="bkprice"></td>
			</tr>
			<tr>
				<th>库存</th>
				<td>
					<input type="text" name="bknum"></td>
			</tr>
			<tr>
				<th>描述</th>
				<td>
					<!-- 加载编辑器的容器 -->
					<script id="container" name="bkdes" type="text/plain"></script>

				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<button>添加</button>
				</td>
			</tr>
	</table>
		</form>
	<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
	<!-- 实例化编辑器 -->
	<script type="text/javascript">
     var ue = UE.getEditor('container', {
     // toolbars:工具栏的图标，具体参照 http://fex.baidu.com/ueditor/#start-toolbar
    /*toolbars: [
       ['fullscreen', 'source', 'undo', 'redo', 'bold','map','insertorderedlist'],
       ['time','date','simpleupload','insertimage','edittable','edittd']
       ]*/
    });
 </script>
</block>